package com.woniuxy.commons.entity.sale;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 打包单下的对应的打包商品信息(PackingMsg)实体类
 *
 * @author makejava
 * @since 2022-04-18 20:02:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ApiModel(value = "打包单下面的打包信息对应的实体类")
public class PackingMsg implements Serializable {
    private static final long serialVersionUID = 165001966253179295L;

    @ApiModelProperty(value = "打包信息自增id")
    private Integer id;

    @ApiModelProperty(value = "打包的编号")
    private String packngId;

    @ApiModelProperty(value = "分包编号（自动生成的）")
    private String packingNum;

    @ApiModelProperty(value = "仓库的数据字典信息")
    private Integer warehouse;

    @ApiModelProperty(value = "区域的数据字典信息")
    private Integer region;

    @ApiModelProperty(value = "打包信息下的所有的产品信息总的重量")
    private Double weight;

    @ApiModelProperty(value = "统计打包信息下的产品信息的个数")
    private Integer nums;

    @ApiModelProperty(value = "统计打包信息下的产品信息的克公费/产品信息的数量")
    private Double processCost;

    @ApiModelProperty(value = "结算状态(当前打包信息下的所有商品都结算)")
    private Integer settlementStatus;

    @ApiModelProperty(value = "逻辑删除(0正常,1表示删除)")
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    //被打包成小包的产品id
    @ApiModelProperty(value = "被打包成小包的产品id")
    private List<Integer> packingId;
}

